package com.gy.api.base;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * 常用参数
 *
 */

public class Constants {
    public static final String TOKEN_PARAM_NAME = "token";
    public static final String TOKEN_SESSION_NAME = "getToken";
    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    public static final int DEL_FLAG_TRUE=1;
    public static final int DEL_FLAG_FALSE=0;


    public static final int SYS_SUCCESS=200;
    public static final int SQL_RETURN_SUCCESS=0;

    public static final String[] SYS_LOG_MODULE={"系统用户","系统角色","系统日志","前端用户"};


    public static final String EXAMINE_ONE_NODE="提交";
    public static final String[] EXAMINE_ENTERPRISE_CERTIFICATION={"提交","初审","审查决定","结束"};
    public static final String[] EXAMINE_SCRIPT_FILING={"提交","受理","专家评审","审查决定","公示发证","结束"};
    public static final String[] EXAMINE_COOPERATION_LETTER={"提交","受理","审查决定","盖章发函","结束"};
    public static final String[] EXAMINE_MOVIE_LETTER={"提交","受理","专家评审","审查决定","公示发证","结束"};

//    public static final String EXAMINE_1_USER="1837411145702936576";//电影处-黄亮
    public static final String EXAMINE_1_USER="1837496981098303488";//电影处-黄亮
    public static final String EXAMINE_2_USER="1837496981098303488";//电影处-向柏炜
    public static final String EXAMINE_3_USER="1837410144212193280";//制片协会-雒存鹏
//    public static final String EXAMINE_4_USER="1837496981098303488";//电影处-向柏炜
    public static final String EXAMINE_JIA_ROLE="1719197348968103935";//专家角色ID


    public static final String EXAMINE_LOG_AGREE="同意";
    public static final String EXAMINE_LOG_REVOKE="撤销";
    public static final String EXAMINE_LOG_AGREE_S="已受理";
    public static final String EXAMINE_LOG_AGREE_S_P="评审反馈";
    public static final String EXAMINE_LOG_RETURN="退回";
    public static final String EXAMINE_LOG_DISAGREE="不同意";


    public static final Integer EXAMINE_TYPE_ENTERPRISE_CERTIFICATION=1;
    public static final Integer EXAMINE_TYPE_COOPERATION_LETTER=2;
    public static final Integer EXAMINE_TYPE_SCRIPT_FILING=3;
    public static final Integer EXAMINE_TYPE_MOVIE_FILING=7;



    public static final ExecutorService executor = new ThreadPoolExecutor(10, 10, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue<>());



    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

}
